package com.techstar.api.pojo.bus;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.techstar.api.pojo.complex_id.TodayTrafficRankId;
import com.techstar.common.jackson.StrDateDeserializer;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 
 * @author EinIce
 * @description 当日客流量排名
 * @date 2021年9月27日
 */

@Getter
@Setter
@Entity
@ToString
@Table(name = "today_traffic_rank")
@IdClass(TodayTrafficRankId.class)
@org.hibernate.annotations.Table(appliesTo = "today_traffic_rank",comment="pbtp-2-当日客流量排名")
public class TodayTrafficRank {
	@Column(columnDefinition="varchar(100) COMMENT '输出参数类型'")
	private String type;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '线路/站点标识'")
	private String id;
	@Column(columnDefinition="varchar(100) COMMENT '线路/站点名称'")
	private String name;
	@Column(columnDefinition="varchar(100) COMMENT '当日累计客流量'")
	private String accFlow;
	@Id
	@Column(columnDefinition="varchar(100) COMMENT '业务更新时间'")
	@JsonDeserialize(using = StrDateDeserializer.class)
	private String createTime;
}

